import { ColumnProps } from "/@/components/ProTable/interface";
import { genderType, userLocked } from "/@/utils/serviceDict";

// 配置项
const columns = (): Partial<ColumnProps>[] => {
    return [{
            type: "selection",
            width: 60,
            fixed: "left"
        },
        {
            type: "index",
            label: "#",
            width: 60
        },
        {
            prop: "name",
            label: "权限名称",
            search: true,
            width: 140,
        },
        {
            prop: "permission",
            label: "权限标识",
            width: 280,
            search: true,
        },
        {
            prop: "description",
            label: "权限描述",
        },
        {
            prop: "operation",
            label: "操作",
            width: 330,
            fixed: "right"
        }
    ]
}

export default columns;